package com.example.statistics.ui.yw

import com.example.statistics.bean.DefineInputBean
import com.example.statistics.bean.yw.ProductTypeBean
import com.example.statistics.common.BaseInputActivity
import com.example.statistics.net.UrlConfig
import com.example.statistics.weight.TextProcessingView

class ProductTypeAddActivity : BaseInputActivity<ProductTypeBean>() {


    override val title: String
        get() = "依汶成品类型"

    override val url: String
        get() = UrlConfig.YW_PRODUCT_TYPE_ADD

    override val inputDataList: List<DefineInputBean>
        get() = listOf(
            DefineInputBean("品牌：", "productBrand", TextProcessingView.STYLE_INPUT),
            DefineInputBean("商品：", "productName", TextProcessingView.STYLE_INPUT),
            DefineInputBean("类别：", "productType", TextProcessingView.STYLE_SELECTOR,
                singleDialog = Pair(listOf("纯干", "调理")) { _, _ ->

                }),
            DefineInputBean("规格：", "specification", TextProcessingView.STYLE_SELECTOR,
                singleDialog = Pair(listOf("5", "10", "15", "20")) { _, _ ->

                }),
            DefineInputBean("备注：", "remark", TextProcessingView.STYLE_INPUT),
        )

}